<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			window.onload = function()
			{
				let btn = document.querySelector('button');
				btn.onclick = function()
				{
					open('https://www.baidu.com/','_blank');
				}
			}
		</script>
	</head>
	<body>
		<button>转</button>
	</body>
</html>